[INFO] cloning repository https://github.com/hubefonseca/rsa
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hubefonseca/rsa" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhubefonseca%2Frsa", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhubefonseca%2Frsa'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] fb7de9920a04210ca49caa968adcdcad0b8f3fce
[INFO] checking hubefonseca/rsa against master#af3c6e733a40e671550e0f0f5aeecaa13772ba56 for pr-74989
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhubefonseca%2Frsa" "/workspace/builds/worker-13/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/hubefonseca/rsa on toolchain af3c6e733a40e671550e0f0f5aeecaa13772ba56
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/hubefonseca/rsa
[INFO] finished tweaking git repo https://github.com/hubefonseca/rsa
[INFO] tweaked toml for git repo https://github.com/hubefonseca/rsa written to /workspace/builds/worker-13/source/Cargo.toml
[INFO] crate git repo https://github.com/hubefonseca/rsa already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 40aee225ec0c51beddf4d0bf4665a77d23f4cd4d7f23f08fbd60da4e60e2643f
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "40aee225ec0c51beddf4d0bf4665a77d23f4cd4d7f23f08fbd60da4e60e2643f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "40aee225ec0c51beddf4d0bf4665a77d23f4cd4d7f23f08fbd60da4e60e2643f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "40aee225ec0c51beddf4d0bf4665a77d23f4cd4d7f23f08fbd60da4e60e2643f", kill_on_drop: false }`
[INFO] [stdout] 40aee225ec0c51beddf4d0bf4665a77d23f4cd4d7f23f08fbd60da4e60e2643f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2b355612b2674a9a95d30ed20977fff4ec9ebd281e02e4eaf139ea7276ec046e
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "2b355612b2674a9a95d30ed20977fff4ec9ebd281e02e4eaf139ea7276ec046e", kill_on_drop: false }`
[INFO] [stderr]     Checking rustc-serialize v0.3.24
[INFO] [stderr]     Checking libc v0.2.39
[INFO] [stderr]     Checking rand v0.4.2
[INFO] [stderr]     Checking num-bigint v0.1.43
[INFO] [stderr]     Checking num-complex v0.1.43
[INFO] [stderr]     Checking num-rational v0.1.42
[INFO] [stderr]     Checking num v0.1.42
[INFO] [stderr]     Checking rsa v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `gcd`
[INFO] [stdout]  --> src/lib.rs:6:24
[INFO] [stdout]   |
[INFO] [stdout] 6 | use num::integer::{lcm,gcd};
[INFO] [stdout]   |                        ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `numbers::modinverse`
[INFO] [stdout]   --> src/lib.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use numbers::modinverse;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `num::Integer`
[INFO] [stdout]  --> src/numbers.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use num::Integer;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `gcd`
[INFO] [stdout]  --> src/lib.rs:6:24
[INFO] [stdout]   |
[INFO] [stdout] 6 | use num::integer::{lcm,gcd};
[INFO] [stdout]   |                        ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `numbers::modinverse`
[INFO] [stdout]   --> src/lib.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use numbers::modinverse;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ToBigInt`
[INFO] [stdout]  --> src/primes.rs:3:31
[INFO] [stdout]   |
[INFO] [stdout] 3 | use num::bigint::{RandBigInt, ToBigInt};
[INFO] [stdout]   |                               ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `num::bigint::ToBigInt`
[INFO] [stdout]  --> src/numbers.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use num::bigint::ToBigInt;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `num::Integer`
[INFO] [stdout]  --> src/numbers.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use num::Integer;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `CheckedSub`
[INFO] [stdout]  --> src/lib.rs:5:19
[INFO] [stdout]   |
[INFO] [stdout] 5 | use num::{BigInt, CheckedSub};
[INFO] [stdout]   |                   ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `p` is never read
[INFO] [stdout]   --> src/lib.rs:57:9
[INFO] [stdout]    |
[INFO] [stdout] 57 |     let mut p: BigInt = One::one();
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/primes.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |     for i in 0..10 {
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `limit`
[INFO] [stdout]   --> src/primes.rs:15:37
[INFO] [stdout]    |
[INFO] [stdout] 15 | fn miller_rabin(candidate: &BigInt, limit: usize) -> bool {
[INFO] [stdout]    |                                     ^^^^^ help: if this is intentional, prefix it with an underscore: `_limit`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `CheckedSub`
[INFO] [stdout]  --> src/lib.rs:5:19
[INFO] [stdout]   |
[INFO] [stdout] 5 | use num::{BigInt, CheckedSub};
[INFO] [stdout]   |                   ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `p` is never read
[INFO] [stdout]   --> src/lib.rs:57:9
[INFO] [stdout]    |
[INFO] [stdout] 57 |     let mut p: BigInt = One::one();
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/primes.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |     for i in 0..10 {
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `limit`
[INFO] [stdout]   --> src/primes.rs:15:37
[INFO] [stdout]    |
[INFO] [stdout] 15 | fn miller_rabin(candidate: &BigInt, limit: usize) -> bool {
[INFO] [stdout]    |                                     ^^^^^ help: if this is intentional, prefix it with an underscore: `_limit`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*b` which is behind a shared reference
[INFO] [stdout]   --> src/numbers.rs:12:17
[INFO] [stdout]    |
[INFO] [stdout] 12 |         return (*b, zero, one);
[INFO] [stdout]    |                 ^^ move occurs because `*b` has type `BigInt`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*b` which is behind a shared reference
[INFO] [stdout]   --> src/numbers.rs:15:25
[INFO] [stdout]    |
[INFO] [stdout] 15 |         return (g, y - (*b / *a) * x, x);
[INFO] [stdout]    |                         ^^ move occurs because `*b` has type `BigInt`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*a` which is behind a shared reference
[INFO] [stdout]   --> src/numbers.rs:15:30
[INFO] [stdout]    |
[INFO] [stdout] 15 |         return (g, y - (*b / *a) * x, x);
[INFO] [stdout]    |                              ^^ move occurs because `*a` has type `BigInt`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `x`
[INFO] [stdout]   --> src/numbers.rs:15:39
[INFO] [stdout]    |
[INFO] [stdout] 14 |         let (g, x, y) = egcd(&(b % a), a);
[INFO] [stdout]    |                 - move occurs because `x` has type `BigInt`, which does not implement the `Copy` trait
[INFO] [stdout] 15 |         return (g, y - (*b / *a) * x, x);
[INFO] [stdout]    |                                    -  ^ value used here after move
[INFO] [stdout]    |                                    |
[INFO] [stdout]    |                                    value moved here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors; 7 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0382, E0507.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*b` which is behind a shared reference
[INFO] [stdout]   --> src/numbers.rs:12:17
[INFO] [stdout]    |
[INFO] [stdout] 12 |         return (*b, zero, one);
[INFO] [stdout]    |                 ^^ move occurs because `*b` has type `BigInt`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*b` which is behind a shared reference
[INFO] [stdout]   --> src/numbers.rs:15:25
[INFO] [stdout]    |
[INFO] [stdout] 15 |         return (g, y - (*b / *a) * x, x);
[INFO] [stdout]    |                         ^^ move occurs because `*b` has type `BigInt`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*a` which is behind a shared reference
[INFO] [stdout]   --> src/numbers.rs:15:30
[INFO] [stdout]    |
[INFO] [stdout] 15 |         return (g, y - (*b / *a) * x, x);
[INFO] [stdout]    |                              ^^ move occurs because `*a` has type `BigInt`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `x`
[INFO] [stdout]   --> src/numbers.rs:15:39
[INFO] [stdout]    |
[INFO] [stdout] 14 |         let (g, x, y) = egcd(&(b % a), a);
[INFO] [stdout]    |                 - move occurs because `x` has type `BigInt`, which does not implement the `Copy` trait
[INFO] [stdout] 15 |         return (g, y - (*b / *a) * x, x);
[INFO] [stdout]    |                                    -  ^ value used here after move
[INFO] [stdout]    |                                    |
[INFO] [stdout]    |                                    value moved here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors; 9 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0382, E0507.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rsa`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "2b355612b2674a9a95d30ed20977fff4ec9ebd281e02e4eaf139ea7276ec046e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2b355612b2674a9a95d30ed20977fff4ec9ebd281e02e4eaf139ea7276ec046e", kill_on_drop: false }`
[INFO] [stdout] 2b355612b2674a9a95d30ed20977fff4ec9ebd281e02e4eaf139ea7276ec046e
